<pre class="docs-method-signature"><code>toolView.getName()</code></pre>
<p>Return the name of the tool. The names of built-in link tools are kebab-case versions of their class names (e.g. the name of <code>joint.linkTools.SourceAnchor</code> is <code>'source-anchor'</code>).</p>

<p>When creating a custom tool (e.g. by extending the <code>joint.linkTools.Button</code> <a href="#linkTools.Button">class</a>), it is recommended that you provide a custom <code>name</code> prototype property, as well:</p>

<pre><code>joint.linkTools.InfoButton = joint.linkTools.Button.extend({
    name: 'info-button',
    options: {
        markup: [{
            tagName: 'circle',
            selector: 'button',
            attributes: {
                'r': 7,
                'fill': '#001DFF',
                'cursor': 'pointer'
            }
        }, {
            tagName: 'path',
            selector: 'icon',
            attributes: {
                'd': 'M -2 4 2 4 M 0 3 0 0 M -2 -1 1 -1 M -1 -4 1 -4',
                'fill': 'none',
                'stroke': '#FFFFFF',
                'stroke-width': 2,
                'pointer-events': 'none'
            }
        }],
        distance: 60,
        offset: 0,
        action: function(evt) {
            alert('View id: ' + this.id + '\n' + 'Model id: ' + this.model.id);
        }
    }
});</code></pre>
